package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.AlertRuleDto;
import com.zzyl.vo.AlertRuleVo;

/**
 * @Description AlertRuleControllerSevice
 * @Author zhengyuan&junjun
 * @Date 2024-11-02
 */
public interface AlertRuleSevice {
    int createRule(AlertRuleDto alertRuleDto);

    PageResponse<AlertRuleVo> getAlertRulePage(Integer pageNum, Integer pageSize, String productKey, String alertRuleName, String functionName);

    String deleteAlertRule(Long id);

    String enableOrDisable(Long id, Integer status);

    AlertRuleVo readAlertRule(Long id);

   void  updateAlertRule(Long id, AlertRuleDto alertRuleDto);
}
